This feature is supported only in FX Series reader. Typically RF power transmitted at the antenna is lesser than transmit power at the port due to GPIs loss in cable. Once the cable loss in dB per 100 feet and cable length in feet are configured per antenna, the reader sets new upper limit for the transmit power after accounting for the specified loss in cable. The methods setCableLossCompensation and getCableLossCompensation can be used for this.
// Get Cable Loss Compensation for the antenna 1
try
{
CableLossCompensation cableLossCompensation
= rm.getCableLossCompensation(1);
System.out.println("getCableLossCompensation()
AntennaID: " + cableLossCompensation.getAntennaID() +
" cableLengthInFt: "
+ cableLossCompensation.getCableLengthInFeet() +
" cableLossPer100Ft: " + cableLossCompensation.getCableLossPer100Feet());
}
catch (OperationFailureException
exception)
{
System.out.println("getCableLossCompensation
failed " + exception.toString());
}
// Set Cable Loss Compensation for the antenna 1 and 2
try
{
CableLossCompensation[] cableLossArray = new
CableLossCompensation[2];
cableLossArray[0] = new CableLossCompensation();
cableLossArray[1] = new CableLossCompensation();
if (cableLossArray != null)
{
cableLossArray[0].setAntennaID(1);
cableLossArray[0].setCableLengthInFeet(11.11F);
cableLossArray[0].setCableLossPer100Feet(0.11F);
cableLossArray[1].setAntennaID(2);
cableLossArray[1].setCableLengthInFeet(21.21F);
cableLossArray[1].setCableLossPer100Feet(0.21F);
rm.setCableLossCompensation(cableLossArray);
}
}
catch (Exception
ex)
{
System.out.println("setCableLossCompensation
failed " + ex.toString());
}